<template>
  <!-- 问题分类页面 -->
  <div class="w100">
    <LibList
      v-for="(item, index) in state.questions"
      :key="index"
      :msg="item"
    />
  </div>
</template>

<script>
import { reactive } from "vue";
import LibList from "../QuestionLibBox/LibList.vue";

export default {
  // 子组件
  components: {
    LibList,
  },
  // 父组件传值
  props: {
    msg: Object,
  },
  // 事件抛出组
  emits: ["answer-all"],
  setup(props, { emit }) {
    // 双向绑定数据
    const state = reactive({
      questions: [
        { id: "1", text: "这是标题", describe: "有疑点" },
        { id: "2", text: "这是标题", describe: "zhege" },
      ],
    });
    // 传入模板
    return {
      state,
    };
  },
};
</script>

<style scoped>
</style>
